package org.bee.util;

import org.quartz.CronExpression;

import java.text.ParseException;
import java.util.Date;

public class test {
    public static void main(String[] args) throws ParseException {
        String cron ="3/5 * * ? * * *";
        CronExpression cronExpression = new CronExpression(cron);
        Date lastFireTime = new Date(); // 从当前时间开始
        for (int i = 0; i < 10; i++) {
            lastFireTime = cronExpression.getNextValidTimeAfter(lastFireTime);
            System.out.println(lastFireTime);
        }

    }
}
